package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
import java.util.Objects;

public class HeTongVoVo {
    private int htId;//合同id
    private Kehu kH;//客户id
    private Integer empId;//员工id
    private String htHao;//合同号
    private BigDecimal htMoney;//合同总金额
    private String htFukuanfanshi;//合同付款方式
    private String htJiaofudidian;//合同交付地点
    private Timestamp htKaishitime;//合同开始时间
    private Timestamp htJieshutime;//合同结束时间
    private Timestamp htQianyuetime;//合同签约时间
    private BigDecimal htHuikuanmoney;//合同回款金额
    private String htZhuangtai;//合同状态
    private String htJiekuanfanshi;//合同结款方式
    private String htBeizhu;//合同备注
    private Quotation quotation;//报价id

    private int htYs;//判断是否删除合同

    private List<Hetongxiangqing> heTongXiangQingList;


    public List<Hetongxiangqing> getHeTongXiangQingList() {
        return heTongXiangQingList;
    }

    public void setHeTongXiangQingList(List<Hetongxiangqing> heTongXiangQingList) {
        this.heTongXiangQingList = heTongXiangQingList;
    }

    @Basic
    @Column(name = "ht_ys")
    public int getHtYs() {
        return htYs;
    }

    public void setHtYs(int htYs) {
        this.htYs = htYs;
    }



    @Id
    @Column(name = "ht_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getHtId() {
        return htId;
    }

    public void setHtId(int htId) {
        this.htId = htId;
    }

    @ManyToOne
    @JoinColumn(name = "k_id", referencedColumnName = "k_id")
    public Kehu getkH() {
        return kH;
    }

    public void setkH(Kehu kH) {
        this.kH = kH;
    }

    @Basic
    @Column(name = "emp_id", nullable = true)
    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    @Basic
    @Column(name = "ht_hao", nullable = true, length = 200)
    public String getHtHao() {
        return htHao;
    }

    public void setHtHao(String htHao) {
        this.htHao = htHao;
    }

    @Basic
    @Column(name = "ht_money", nullable = true, precision = 2)
    public BigDecimal getHtMoney() {
        return htMoney;
    }

    public void setHtMoney(BigDecimal htMoney) {
        this.htMoney = htMoney;
    }

    @Basic
    @Column(name = "ht_fukuanfanshi", nullable = true, length = 200)
    public String getHtFukuanfanshi() {
        return htFukuanfanshi;
    }

    public void setHtFukuanfanshi(String htFukuanfanshi) {
        this.htFukuanfanshi = htFukuanfanshi;
    }

    @Basic
    @Column(name = "ht_jiaofudidian", nullable = true, length = 200)
    public String getHtJiaofudidian() {
        return htJiaofudidian;
    }

    public void setHtJiaofudidian(String htJiaofudidian) {
        this.htJiaofudidian = htJiaofudidian;
    }

    @Basic
    @Column(name = "ht_kaishitime", nullable = false)
    public Timestamp getHtKaishitime() {
        return htKaishitime;
    }

    public void setHtKaishitime(Timestamp htKaishitime) {
        this.htKaishitime = htKaishitime;
    }

    @Basic
    @Column(name = "ht_jieshutime", nullable = false)
    public Timestamp getHtJieshutime() {
        return htJieshutime;
    }

    public void setHtJieshutime(Timestamp htJieshutime) {
        this.htJieshutime = htJieshutime;
    }

    @Basic
    @Column(name = "ht_qianyuetime", nullable = false)
    public Timestamp getHtQianyuetime() {
        return htQianyuetime;
    }

    public void setHtQianyuetime(Timestamp htQianyuetime) {
        this.htQianyuetime = htQianyuetime;
    }

    @Basic
    @Column(name = "ht_huikuanmoney", nullable = true, precision = 2)
    public BigDecimal getHtHuikuanmoney() {
        return htHuikuanmoney;
    }

    public void setHtHuikuanmoney(BigDecimal htHuikuanmoney) {
        this.htHuikuanmoney = htHuikuanmoney;
    }

    @Basic
    @Column(name = "ht_zhuangtai", nullable = true, length = 200)
    public String getHtZhuangtai() {
        return htZhuangtai;
    }

    public void setHtZhuangtai(String htZhuangtai) {
        this.htZhuangtai = htZhuangtai;
    }

    @Basic
    @Column(name = "ht_jiekuanfanshi", nullable = true, length = 200)
    public String getHtJiekuanfanshi() {
        return htJiekuanfanshi;
    }

    public void setHtJiekuanfanshi(String htJiekuanfanshi) {
        this.htJiekuanfanshi = htJiekuanfanshi;
    }

    @Basic
    @Column(name = "ht_beizhu", nullable = true, length = 200)
    public String getHtBeizhu() {
        return htBeizhu;
    }

    public void setHtBeizhu(String htBeizhu) {
        this.htBeizhu = htBeizhu;
    }

    @ManyToOne
    @JoinColumn(name = "Quotation_id", referencedColumnName = "Quotation_id")
    public Quotation getQuotation() {
        return quotation;
    }

    public void setQuotation(Quotation quotation) {
        this.quotation = quotation;
    }


}
